package com.zqh.cli.commandPattern;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Device {

    public String name;


    public void turnOn(){
        System.out.println("将装置" + name + "打开");
    }
    public void turnOff(){
        System.out.println("将装置" + name + "关闭");
    }


}
